package com.second.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.second.system.pojo.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleDao extends BaseMapper<Role> {

    List<Integer> showUserHasRole(Integer userid);

    Integer deleteUserOldRole(Integer userid);

    Integer insertUserNewRole(List<Integer> roleidList,Integer userid);

}
